package com.kmust.dream.wanderingdream.comm.dto;


import com.kmust.dream.wanderingdream.comm.pojo.ResultBean;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class Result {
    public Result() {
    }

    @Bean
    public static ResultBean resultBean() {
        return new ResultBean();
    }

    public static ResultBean resultBean(Integer status, String message, Object payload) {
        return new ResultBean(status, message, payload);
    }
}
